package com.gss.stockLedger.form;

import java.util.Date;

public class ReportGenerateForm {
	
	private Date startDate;

	private Date endDate;
	private String invType;

	private String valuationMethod;
	private String lastPartId;
	private String purchaseType;
	private String transactionType;
	private String accountType;

	private String companyName;

	private String reportType;
	private String reportCategory;
	private boolean negativePartVariable;
	private String email;
	
	private Date secStartDate;
	private Date secEndDate;
	
	/**
	 * @return the startDate
	 */
	public Date getStartDate() {
		return startDate;
	}
	/**
	 * @return the endDate
	 */
	public Date getEndDate() {
		return endDate;
	}
	/**
	 * @param startDate the startDate to set
	 */
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
		if(null != startDate){
			Date newStartDate = new Date();
			newStartDate.setTime(startDate.getTime());
			newStartDate.setTime(newStartDate.getTime() - 100);
			setSecStartDate(newStartDate);
		}
	}
	/**
	 * @param endDate the endDate to set
	 */
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
		if(null != endDate){
			Date newEndDate = new Date();
			newEndDate.setTime(endDate.getTime());
			newEndDate.setTime((newEndDate.getTime() + (24*60*60*1000)) - 1); 
			setSecEndDate(newEndDate);
		}
	}
	public String getInvType() {
		return invType;
	}
	public void setInvType(String invType) {
		this.invType = invType;
	}
	
	public String getLastPartId() {
		return lastPartId;
	}
	public void setLastPartId(String lastPartId) {
		this.lastPartId = lastPartId;
	}
	public String getPurchaseType() {
		return purchaseType;
	}
	public String getTransactionType() {
		return transactionType;
	}
	public String getAccountType() {
		return accountType;
	}
	public String getCompanyName() {
		return companyName;
	}
	public void setPurchaseType(String purchaseType) {
		this.purchaseType = purchaseType;
	}
	public void setTransactionType(String transactionType) {
		this.transactionType = transactionType;
	}
	public void setAccountType(String accountType) {
		this.accountType = accountType;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public String getValuationMethod() {
		return valuationMethod;
	}
	public void setValuationMethod(String valuationMethod) {
		this.valuationMethod = valuationMethod;
	}
	public String getReportType() {
		return reportType;
	}
	public void setReportType(String reportType) {
		this.reportType = reportType;
	}
	public String getReportCategory() {
		return reportCategory;
	}
	public void setReportCategory(String reportCategory) {
		this.reportCategory = reportCategory;
	}
	public boolean isNegativePartVariable() {
		return negativePartVariable;
	}
	public void setNegativePartVariable(boolean negativePartVariable) {
		this.negativePartVariable = negativePartVariable;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}

	public Date getSecStartDate() {
		return secStartDate;
	}
	public void setSecStartDate(Date secStartDate) {
		this.secStartDate = secStartDate;
	}
	public Date getSecEndDate() {
		return secEndDate;
	}
	public void setSecEndDate(Date secEndDate) {
		this.secEndDate = secEndDate;
	}	
}
